package org.rc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Room {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String name;

    public static Room getInstance(String name){
        Room room = new Room();
        room.setName(name);
        return room;
    }
}
